package com.gzj.environment.enums.code.impl.logCode;

import com.gzj.environment.enums.code.BaseCode;
import lombok.AllArgsConstructor;

/**
 * @description:
 * @author: tsing
 * @create: 2020-08-09 15:03
 */
@AllArgsConstructor
public enum LogCode implements BaseCode {

    // 4.4.日志相关(4301~4399)
    ERROR_MSG_NULL(false, 4301, "操作结果为错误时，错误信息不能为空")
    ;

    private Boolean success; // 是否成功
    private int code; // 状态码
    private String message; // 操作信息

    @Override
    public boolean success() {
        return this.success;
    }

    @Override
    public int code() {
        return this.code;
    }

    @Override
    public String message() {
        return this.message;
    }
}
